<template>
	<view class="conent">
		<view class="suc-conent clearfix">
			<view class="suc-conent__circle">
				<u-icon name="checkbox-mark" color="#fff" size="30"></u-icon>
			</view>
			<view class="suc-conent__normal">转账成功</view>
		</view>
		<!-- <view class="transfer_info">转账账户{{ customerNo }}</view> -->
		<view class="transfer_info money">
			<u-icon name="rmb" size="40px"></u-icon>
			<view class="" style="font-size: 40px;">{{ money }}</view>
		</view>
		<u-button type="primary" text="完成" @tap="goToUserCenter" color="#f06c7a" class="btn"></u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				customerNo: '',
				money: ''
			};
		},
		methods: {
			goToUserCenter() {
				uni.switchTab({
					url: '/pages/userCenter/userCenter'
				});
			},
		},
		created() {

		},
		onLoad: function(option) {
			console.log('option', option)
			const {
				customerNo,
				money
			} = option
			this.customerNo = customerNo;
			this.money = money
		},
	}
</script>

<style lang="scss">
	.suc-conent {
		position: absolute;
		margin-top: 300rpx;
		width: 120rpx;
		left: 50%;
		margin-left: -48rpx;

		&__circle {
			background-color: $u-success;
			@include flex;
			border-radius: 100px;
			width: 60px;
			height: 60px;
			align-items: center;
			justify-content: center;
		}

		&__normal {
			font-size: 15px;
			color: $u-success;
			margin: 30rpx 0;
		}
	}

	.transfer_info {
		font-size: 15px;
	}

	.money {
		display: flex;
		justify-content: center;
		position: absolute;
		width: 800rpx;
		margin-top: 500rpx;
		left: 50%;
		margin-left: -400rpx;
	}

	.btn {
		margin-top: -300rpx;
		width: 300rpx;
		left: 50%;
		margin-left: -150rpx;
		position: fixed;
		bottom: 200rpx;
	}
</style>
